import dayjs from "dayjs";

export const type_action = [
    {
        type: 'user',
        name: '用户'
    },
    {
        type: 'config',
        name: '配置'
    },
    {
        type: 'service',
        name: '服务'
    },
    {
        type: 'ssl',
        name: 'SSL证书'
    },
    {
        type: 'iplist',
        name: '黑白名单'
    },
    {
        type: 'app',
        name: '应用'
    }
]

export const type_accessLog = ['http', 'dist', 'ws']

export const shortcuts_start = [
    {
        label: '1小时前',
        value: () => dayjs().add(-1, 'hour')
    },
    {
        label: '12小时前',
        value: () => dayjs().add(-12, 'hour'),
    },
    {
        label: '7天前',
        value: () => dayjs().add(-7, 'day'),
    },
]
